#pragma once

#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>

typedef int HPDataType;

typedef struct Heap
{
	HPDataType* a;
	int size;
	int capacity;
}HP;

void HeapInit(HP* heap);

void HeapPush(HP* heap, HPDataType x);
void HeapPop(HP* heap);

bool HeapEmpty(HP* heap);
int HeapSize(HP* heap);
HPDataType HeapTpo(HP* heap);

void HeapDestroy(HP* heap);
